package com.momo.hr.mapper;
import com.momo.hr.bean.Hr;
import com.momo.hr.bean.Role;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

public interface HrMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Hr record);

    int insertSelective(Hr record);

    Hr selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Hr record);

    int updateByPrimaryKey(Hr record);

    Hr loadUserByUsername(String username);

    List<Role> getRolesById(Integer id);

    List<Hr> getAllHrs(@Param("id") Integer id, @Param("keywords")String keywords);

    List<Hr> getAllHrsExceptCurrentHr(Integer id);

    int updatePasswordByHrId(@Param("hrid") Integer hrid, @Param("encodePassword") String encode);

    int updateUserFaceByPrimaryId(String url, Integer id);
}